<div class="table-responsive">

  <div class="filter-bar">
	<form action="__CONTROLLER__/index" method="post" >
		<div class="view">
			<div class="row clearfix">
				<div class="col-md-3 column ui-sortable">
				    <label class="col-sm-3 control-label">客户名称</label>
				    <div class="col-sm-9">
				      <input type="text" id="name" class="form-control" name="name" placeholder="" value="{$param.name}">
				    </div>
				</div>
				<div class="col-md-3 column ui-sortable">
				    <div class="col-sm-9">
				       <input type="submit" class="btn btn-info submit" value="搜索"/>
				    </div>
				</div>
			</div>
		</div>
	</form>
  </div>
  <hr/>
  
	<table class="table table-hover">
		<thead>
			<tr>
				<th>ID</th>
				<th>客户姓名</th>
				<th>客户邮箱</th>
				<th>联系人</th>
				<th>地址</th>
				<th>服务期限</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="customerLists" id="vo">
				<tr>
					<td class="void">{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.email}</td>
					<td>{$vo.contacts}<br>{$vo.tel}</td>
					<td>{$vo.provinceName} {$vo.cityName} {$vo.areaName}<br>{$vo.address|cutstr=###,0,20}</td>
					<td><notempty name="vo.begin_time">{$vo.begin_time|date="Y-m-d H:i",###}</notempty><br><notempty name="vo.end_time">{$vo.end_time|date="Y-m-d H:i",###}</notempty></td>
					<td class="status">{$vo["status"]?"正常":"禁止"}</td>
					<td>
						<a class="btn btn-primary btn-xs" href="__CONTROLLER__/modify/id/{$vo.id}">修改</a>
						<a class="btn btn-primary btn-xs" href="{:U('CustomerAdmin/index','cid='.$vo['id'])}">管理员管理</a>
						<a class="btn btn-primary btn-xs" href="__CONTROLLER__/login/cid/{$vo.id}" target="_blank">后台</a> 
						<a class="btn btn-danger btn-xs actionds" data-action-id="{$vo.id}" data-action-txt="移除中……" data-action-url="__CONTROLLER__/removePost">移除</a>
						<a class="btn btn-info btn-xs action-status" data-action-id="{$vo.id}" data-action-txt="执行中……" data-action-status="{$vo.status}" data-action-status-txt="正常 禁止" data-action-url="__CONTROLLER__/setStatusPost">{$vo["status"]?"设为禁止":"恢复正常"}</a>
					</td>
				</tr>
			</volist>
		</tbody>
	</table>
</div>

<div class="pagination">{$pagination}</div>